package com.yjj.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yjj.bean.Yjj_teacher;
import com.yjj.util.Pageutil;

public interface Yjj_teacherDao {
    int deleteByPrimaryKey(Integer tid);

    int insert(Yjj_teacher record);

    int insertSelective(Yjj_teacher record);

    Yjj_teacher selectByPrimaryKey(Integer tid);

    int updateByPrimaryKeySelective(Yjj_teacher record);

    int updateByPrimaryKey(Yjj_teacher record);

	List selectByGradeMax4(String xuename);

	List selectAll(String xuename);

	Object ifdate(@Param("newDate")String newDate, @Param("stratdate")String stratdate, @Param("tid")Integer tid);

	List getTeacherBysid(Integer sid);

	List getMyattention(Integer uid);

	List getOneUserClearing(Integer uid);

	Object getByTeacherName(String tel);

	Object getByTeacherNameAndClazz(@Param("tel")String tel, @Param("pwd")String pwd);

	int getcount();

	List getTeacherAllAndFenPage(Pageutil p);
}